package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName(value ="emp" )
@Data
public class Emp {
    @TableId(value = "eid",type = IdType.AUTO)
    private Integer eid;

   @TableField(value = "ename")
    private String ename;

    @TableField(value = "sex")
    private String sex;

    @TableField(value = "birth")
    @DateTimeFormat(pattern = "yyyy-MM-dd")

    private Date birth;

    @TableField(value = "ruzhidate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")

    private Date ruzhidate;

    @TableField(value = "xueli")
    private String xueli;

    @TableField(value = "zid")
    private Integer zid;

    @TableField(value = "address")
    private String address;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "sosphone")
    private String sosphone;

    @TableField(value = "did")
    private Integer did;
}
